package pages;

import org.openqa.selenium.By;
import utils.Log4Test;
import utils.WebDriverWrapper;

/**
 * Created by Vadim on 6/10/14.
 */
public class KidsPage extends BasePage {
    private static final String URL_KIDS = "http://rozetka.com.ua/kids/c88468/";
    private static final By pageKids = By.xpath("//*[@id='kids']/div/a");

    public KidsPage(WebDriverWrapper driver) {
        super(driver, URL_KIDS);
    }

    public void open() {
        driver.findElement(pageKids).click();
        if (driver.getCurrentUrl().equals(URL_KIDS)) {
            Log4Test.info("Page kids is opened");
        } else {
            Log4Test.error("Page kids isn't opened");
        }

    }
}
